package ch09;

class _01_EqualsEx1 {
	public static void main(String[] args) {
		Value v1 = new Value(10);
		Value v2 = new Value(10);
		System.out.println(v1.equals(v2)); // false
		
		v2 = v1;
		System.out.println(v1.equals(v2)); // true
	}
}

class Value{
	int value;

	Value(int value) {
		this.value = value;
	}
}